package net.alan.common.constants;

/**
 * 日志类行
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/22
 */
public enum ELogType {
    login("登陆"), logout("注销"),
    ;

    private String name;

    private ELogType(String name) {
        this.name = name;
    }

    public static String getName(String name) {
        for (ELogType c : ELogType.values()) {
            if (c.getName().equals(name)) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
